	.file	"ptr.c"
	.intel_syntax noprefix
	.text
.globl reverse
	.type	reverse, @function
reverse:
	push	ebp
	mov	ebp, esp
	sub	esp, 40
	mov	eax, DWORD PTR [ebp+8]
	mov	DWORD PTR [ebp-16], eax
	mov	eax, DWORD PTR [ebp+8]
	mov	DWORD PTR [esp], eax
	call	strlen
	sub	eax, 1
	add	eax, DWORD PTR [ebp+8]
	mov	DWORD PTR [ebp-20], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR [ebp-16]
	movzx	eax, BYTE PTR [eax]
	mov	BYTE PTR [ebp-9], al
	mov	eax, DWORD PTR [ebp-20]
	movzx	edx, BYTE PTR [eax]
	mov	eax, DWORD PTR [ebp-16]
	mov	BYTE PTR [eax], dl
	mov	eax, DWORD PTR [ebp-20]
	movzx	edx, BYTE PTR [ebp-9]
	mov	BYTE PTR [eax], dl
	add	DWORD PTR [ebp-16], 1
	sub	DWORD PTR [ebp-20], 1
.L2:
	mov	eax, DWORD PTR [ebp-16]
	cmp	eax, DWORD PTR [ebp-20]
	jb	.L3
	leave
	ret
	.size	reverse, .-reverse
.globl main
	.type	main, @function
main:
	push	ebp
	mov	ebp, esp
	and	esp, -16
	sub	esp, 32
	mov	DWORD PTR [esp+25], 1701012065
	mov	WORD PTR [esp+29], 26212
	mov	BYTE PTR [esp+31], 0
	lea	eax, [esp+25]
	mov	DWORD PTR [esp], eax
	call	reverse
	mov	eax, 0
	leave
	ret
	.size	main, .-main
	.ident	"GCC: (Ubuntu 4.4.1-4ubuntu8) 4.4.1"
	.section	.note.GNU-stack,"",@progbits
